package com.sfac.javaSpringBoot.modules.account.service;

import com.github.pagehelper.PageInfo;
import com.sfac.javaSpringBoot.modules.account.entity.Resource;
import com.sfac.javaSpringBoot.modules.account.entity.User;
import com.sfac.javaSpringBoot.modules.common.entity.Result;
import com.sfac.javaSpringBoot.modules.common.entity.SearchBean;

import java.util.List;

public interface ResourceService {
////     多个数插入
//     Result<Resource> insertResource(List<Resource> resource);
////     删除
//     Result<Resource> deleteResource(int id);
////     修改
//     Result<Resource> editResource(Resource resource);
////     查询所有
//     List<Resource> getAllResource();
////     查询单个书籍根据id
//     Resource getResourceById(int id);
//
//     PageInfo<Resource> getResourcesBySearchBean(SearchBean searchBean);


     Result<Resource> insertResource(Resource resource);

     Result<Resource> updateResource(Resource resource);

     Result<Object> deleteResourceById(int id);

     Resource getResourceById(int id);

     List<Resource> getResourcesByRoleId(int roleId);

     PageInfo<Resource> getResourcesBySearchBean(SearchBean searchBean);

}
